/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package im.imrobots.v.ymsg;

import im.imrobots._comn.ASession;
import im.imrobots._face.IContact;
import im.imrobots._face.IMessage;
import im.imrobots._face.IMimeMessage;
import im.imrobots._face.ISession;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author amon
 */
public class Session extends ASession
{
    private ymsg.network.Session messenger;

    public Session(ymsg.network.Session messenger)
    {
        this.messenger = messenger;
    }

    @Override
    public void send()
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void send(String message)
    {
        try
        {
            messenger.sendChatMessage(message);
        }
        catch (IllegalStateException ex)
        {
            Logger.getLogger(Session.class.getName()).log(Level.SEVERE, null, ex);
        }
        catch (IOException ex)
        {
            Logger.getLogger(Session.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    @Override
    public void send(IMessage message)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void send(IMimeMessage message)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void send(File file)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String netLine()
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IContact getContact()
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IMessage createMessage()
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IMimeMessage createMimeMessage()
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setAttribute(String key, Object obj)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Object getAttribute(String key)
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
